﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

// Token: 0x020002DB RID: 731
[Serializable]
public class CharFileInfoCoordinateMale : global::CharFileInfoCoordinate
{
	// Token: 0x060011DE RID: 4574 RVA: 0x00091A48 File Offset: 0x0008FC48
	public CharFileInfoCoordinateMale()
	{
		for (int i = 0; i < Enum.GetNames(typeof(global::CharDefine.CoordinateType)).Length; i++)
		{
			global::CharFileInfoClothesMale value = new global::CharFileInfoClothesMale();
			this.dictClothesInfo[(global::CharDefine.CoordinateType)i] = value;
		}
	}

	// Token: 0x060011DF RID: 4575 RVA: 0x00091A90 File Offset: 0x0008FC90
	public override bool SaveSub(BinaryWriter bw)
	{
		int value = this.dictClothesInfo.Count((KeyValuePair<global::CharDefine.CoordinateType, global::CharFileInfoClothes> v) => v.Value != null);
		bw.Write(value);
		foreach (KeyValuePair<global::CharDefine.CoordinateType, global::CharFileInfoClothes> keyValuePair in from v in this.dictClothesInfo
		where v.Value != null
		select v)
		{
			bw.Write((int)keyValuePair.Key);
			keyValuePair.Value.SaveWithoutPNG(bw);
		}
		return true;
	}

	// Token: 0x060011E0 RID: 4576 RVA: 0x00091B50 File Offset: 0x0008FD50
	public override bool LoadSub(BinaryReader br, int coordinateVer)
	{
		this.dictClothesInfo.Clear();
		int num = br.ReadInt32();
		for (int i = 0; i < num; i++)
		{
			int key = br.ReadInt32();
			global::CharFileInfoClothesMale charFileInfoClothesMale = new global::CharFileInfoClothesMale();
			charFileInfoClothesMale.LoadWithoutPNG(br);
			this.dictClothesInfo[(global::CharDefine.CoordinateType)key] = charFileInfoClothesMale;
		}
		return true;
	}
}
